// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init()

// 云函数入口函数
exports.main = async (event, context) => {
    let iconArray = [
        {
           icon : "icon-daochacanyin",
           txt : "餐饮",
           id : 1
        },
        {
            icon : "icon-chuhang",
            txt : "出行",
            id : 2
         },
         {
            icon : "icon-aixin",
            txt : "人情",
            id : 3
         },
         {
            icon : "icon-jiankang",
            txt : "健康",
            id : 4
         },
         {
            icon : "icon-qian",
            txt : "其它",
            id : 5
         },
         {
            icon : "icon-dianying",
            txt : "娱乐",
            id : 6
         },
         {
            icon : "icon-gouwu_o",
            txt : "购物",
            id : 7
         },
         {
            icon : "icon-zhufangbutie",
            txt : "住房",
            id : 8
         },
         {
            icon : "icon-xuexi",
            txt : "学习",
            id : 9
         },
         {
            icon : "icon-jiaotong",
            txt : "交通",
            id : 10
         }
    ]

    return {
       iconArray
    }
}